﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="CanDoo.Oil.WebApp.sysAdministrator.Edit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>系统管理员编辑</title>
    <link href="/res/css/common.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server" Layout="Anchor">
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server">
                    <Items>
                        <f:Button ID="btnClose" EnablePostBack="false" runat="server" Hidden="true"
                            Text="关闭">
                        </f:Button>
                        <f:Button ID="btnSave" ValidateForms="FormEdit" Hidden="true"
                            OnClick="btnSave_Click" runat="server" Text="保存">
                        </f:Button>
                        <f:Button ID="btnToEdit" Hidden="true"
                            OnClick="btnToEdit_Click" runat="server" Text="编辑信息">
                        </f:Button>
                        <f:HiddenField ID="ed_EntityId" runat="server"></f:HiddenField>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Items>
                <f:Form BodyPadding="10px" ShowBorder="false" EnableCollapse="true"
                    ID="FormEdit" runat="server" ShowHeader="false">
                    <Rows>
                        <f:FormRow ID="FormRow1" runat="server">
                            <Items>
                                <f:TextBox ID="ed_Name" runat="server" Required="true" ShowRedStar="True" Label="姓名" MaxLength="50">
                                </f:TextBox>
                                <f:TextBox ID="ed_Account" runat="server" Required="true" ShowRedStar="True" Label="用户名" MaxLength="50">
                                </f:TextBox>
                            </Items>
                        </f:FormRow>
                        <f:FormRow ID="FormRow2" runat="server">
                            <Items>
                                <f:TextBox ID="ed_Password" runat="server" Required="true" ShowRedStar="True" Label="密码" MaxLength="50" TextMode="Password">
                                </f:TextBox>
                                <f:TextBox ID="ed_RePassword" runat="server" Required="true" ShowRedStar="True" Label="重复密码" MaxLength="50" TextMode="Password" CompareType="String" CompareControl="ed_Password" CompareOperator="Equal">
                                </f:TextBox>
                            </Items>
                        </f:FormRow>
                        <f:FormRow ID="FormRow3" runat="server">
                            <Items>
                                <f:RadioButtonList ID="ed_Sex" runat="server" Label="性别"></f:RadioButtonList>
                                <f:DatePicker ID="ed_Birthday" runat="server" Label="生日" MaxLength="50"></f:DatePicker>
                            </Items>
                        </f:FormRow>
                        <f:FormRow ID="FormRow4" runat="server">
                            <Items>
                                <f:TextBox ID="ed_Mobile" runat="server" Label="手机" MaxLength="50">
                                </f:TextBox>
                                <f:TextBox ID="ed_Phone" runat="server" Label="电话" MaxLength="50">
                                </f:TextBox>
                            </Items>
                        </f:FormRow>
                        <f:FormRow ID="FormRow5" runat="server">
                            <Items>
                                <f:TextBox ID="ed_Email" runat="server" Label="邮箱" MaxLength="100">
                                </f:TextBox>
                                <f:TextBox ID="ed_Address" runat="server" Label="地址" MaxLength="200">
                                </f:TextBox>
                            </Items>
                        </f:FormRow>
                        <f:FormRow ID="FormRow6" runat="server">
                            <Items>
                                <f:TextBox ID="ed_QQ" runat="server" Label="QQ号" MaxLength="50">
                                </f:TextBox>
                                <f:TextBox ID="ed_IDCard" runat="server" Label="证件号码" MaxLength="50">
                                </f:TextBox>
                            </Items>
                        </f:FormRow>
                        <f:FormRow ID="FormRow7" runat="server">
                            <Items>
                                <f:RadioButtonList ID="ed_Enable" runat="server" Label="启用帐号"></f:RadioButtonList>
                                <f:TextBox ID="ed_PageSize" runat="server" Required="true" ShowRedStar="True" Label="每页显示数" MaxLength="50">
                                </f:TextBox>
                            </Items>
                        </f:FormRow>
                        <f:FormRow ID="FormRow13" runat="server">
                            <Items>
                                <f:DropDownList ID="ed_Department" runat="server" Label="机关单位">
                                </f:DropDownList>
                            </Items>
                        </f:FormRow>
                        <f:FormRow ID="FormRow16" runat="server">
                            <Items>
                                <%--<f:DropDownList ID="ed_Roles" runat="server" Label="Label"></f:DropDownList>--%>
                                <f:DropDownBox runat="server" ID="ed_Roles" EmptyText="请选择角色" DataControlID="RadioRoles" EnableMultiSelect="true" Label="授权角色">
                                    <PopPanel>
                                        <f:SimpleForm ID="SimpleForm2" BodyPadding="10px" runat="server" AutoScroll="true"
                                            ShowBorder="True" ShowHeader="false" Hidden="true">
                                            <Items>
                                                <f:Label ID="Label1" runat="server" Text="请选择角色："></f:Label>
                                                <f:CheckBoxList ID="RadioRoles" runat="server" ColumnNumber="2"></f:CheckBoxList>
                                            </Items>
                                        </f:SimpleForm>
                                    </PopPanel>
                                </f:DropDownBox>
                            </Items>
                        </f:FormRow>
                        <f:FormRow ID="FormRow17" runat="server">
                            <Items>
                                <f:TextArea ID="ed_Remark" runat="server" Label="备注" Height="150px" MaxLength="500">
                                </f:TextArea>
                            </Items>
                        </f:FormRow>
                    </Rows>
                </f:Form>
            </Items>
        </f:Panel>
    </form>
</body>
</html>
